package com.wlyuan.open.scanner.repository;

import com.wlyuan.open.scanner.domain.quotation.QuotationRelation;

import java.util.List;

/**
 * @author lijing
 * @description
 */
public interface QuotationRelationRepository {

    List<QuotationRelation> list(Integer pageNum, Integer waybillType);

    List<QuotationRelation> list(Integer pageNum, Long tenantId, Integer waybillType);

    /**
     * 数量
     *
     * @return
     */
    Integer count(Integer waybillType);

    /**
     * 数量
     *
     * @param tenantId
     * @return
     */
    Integer count(Long tenantId, Integer waybillType);

    List<Long> getByTime(String startTime, String endTime, Integer waybillType);

    List<Long> getByTenantIdTime(Long tenantId, String startTime, String endTime, Integer waybillType);

    QuotationRelation getByWaybillId(Long waybillId);
}
